package com.itlzh.mall.demo;

//import com.cx.mall.demo.entity.Children;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
//import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

//声明这是一个Springboot应用，同时排除数据库的自动配置
@SpringBootApplication() //这是一个springboot应用
@ComponentScan(basePackages = {"com.itlzh.mall"})
@MapperScan(basePackages = {"com.itlzh.mall.demo.dao"})
public class MallDemoApplication {
    public static void main(String[] args) {
        //启动一个应用
        SpringApplication.run(MallDemoApplication.class,args);
    }
//    @Bean
//    public  Children children(){
//        return new Children();
//    }
}
